﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>微街秀 > 申请正式会员</title>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="js/base.js" type="text/javascript"></script>
    <script src="js/ajax-data.js" type="text/javascript"></script>
    <script src="js/dialog.js" type="text/javascript"></script>
    <style>
     .box{ width:94%; margin-left:auto; margin-right:auto; height:150px; -webkit-border-radius: 10px; margin-top:30px; border:solid 1px #C7C7C7;}
    .input{ width:94%; height:93%; margin-top:10px; margin-left:10px;border: 0; font-size: 14px; background-color:White;}
    .box1{width:94%; margin-left:auto; margin-right:auto; height:40px; -webkit-border-radius: 10px; margin-top:10px; border:solid 1px #C7C7C7;}
      .inputone{ width:90%; height:30px; border:0;margin-left: 2%; font-size:14px;   margin-right:auto; background-color:White;line-height: 30px;margin-top: 2px;}
       .box2{width:94%; margin-left:auto; margin-right:auto; height:40px; background-color:#F37B0B; -webkit-border-radius: 10px; margin-top:20px;}
    .input2{ line-height:40px; text-align:center; font-size:16px;color: white;}
    </style>
    <script>
        function GoBack() {
            //            var url = getUrlArgStr("url");
            //            if (url != "")
            //                window.location =decodeURIComponent(url);
            //            else
            window.location = "index.html";
        }
    </script>
</head>
<body>
    <div class="wamtop">
        <div class="topleft" onclick="GoBack()">
            <img src="img/5.jpg" /></div>
        <div class="topcententxt">
            申请正式会员</div>
    </div>
    <div>
    <div class="box1">
        <input type="text" id="commpy" class="inputone" placeholder="公司名">
    </div>
    <div class="box1">
        <input type="text" id="phone" class="inputone" placeholder="电 话">
    </div>
    <div class="box1">
        <input type="text" id="linkman" class="inputone" placeholder="联系人">
    </div>
    <div class="box1">
        <input type="text" id="Email" class="inputone" placeholder="邮 箱">
    </div>
    <div class="box">
        <textarea id="mark" class="input" placeholder="备 注"></textarea>
    </div>
    <div class="box2" id="submits">
        <div class="input2">
            确定</div>
    </div>
    </div>

    <script type="text/javascript">
        $(document).ready(function () {
            $("#submits").click(function () {
                if (!chenck()) return;
                ajax.getAjax("Ajax/User.ashx?VipApply", "&company=" + $("#commpy").val() + "&phone=" + $("#phone").val() + "&contact=" + $("#linkman").val() + "&email=" + $("#Email").val() + "&summary=" + $("#mark").val(), function (data) {
                    if (data.code == "0") {
                        Alert("提交成功");
                        history.go(-1);
                    }
                    else {
                        Alert(data.msg.toString());
                    }
                });
            });
        });
        function chenck() {
            if ($("#commpy").val() == "") {
     
           Alert("请输入公司名");
                return false;
            }
            if ($("#phone").val() == "") {
                Alert("请输入电话号码");
                return false;
            }
            if ($("#linkman").val() == "") {
                Alert("请输入联系人");
                return false;
            }
            if ($("#Email").val() == "") {
                Alert("请输入邮箱");
                return false;
            }
            return true;
        }
    </script>
</body>
</html>
